package cn.edu.zafu.bigdata.lyq.work6;

public class ScoreCheck {
    public static void checkScore(int score) throws InvalidScoreException{
        if( score < 0 || score > 100){
            throw new InvalidScoreException("输入的分数”"+score+"“无效。分数必须在0到100之间。");

        }
        System.out.println("分数为："+ score);
    }
}
